put line (line 2 of fld "key") of answerTracker into theLocs
if theLocs is not empty then
repeat with i = 1 to number of lines in fld "origins"
get item (i*2 - 1) to (i*2) of theLocs
set the loc of bg btn (i + 8) to it
end repeat
else
repeat with j = 1 to number of lines in fld "origins"
set the loc of bg btn (j + 8) to (line j of fld "origins")
end repeat
end if
pass openCard
end openCard
on closeCard
global answerTracker
get line 2 of fld "key" -- says which line of global to worry about
put empty into line it of answerTracker
repeat with i = 1 to number of lines in fld "origins"
put the loc of bg btn (i + 8) & "," after line it of answerTracker
end repeat
delete last char of line it of answerTracker
pass closeCard
end closeCard
on moveButton
get fld "decisions"
repeat until the mouse is up
if item 2 of the mouseLoc > it
then set the loc of the target to the mouseLoc
end repeat
get the loc of the target
if it is within the rect of bg btn "Links" or it is within the rect of bg btn "Nodes" then exit moveButton
set the loc of the target to line (number of the target - 8) of fld "origins"
end moveButton
on hideFeedback
lock screen
hide fld "Feedback1"
hide fld "Feedback2"
hide fld "CorrectAnswer"
hide fld "MasterFeedback"
hide bg btn "Done"
unlock screen
end hideFeedback
on showFeedback
lock screen
show fld "Feedback1"
show fld "Feedback2"
show fld "CorrectAnswer"
show fld "MasterFeedback"
show bg btn "Done"
unlock screen
end showFeedback
-- part 3 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=18 top=1 right=38 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 24
-- style flags: 10240
-- line height: 32
-- part name: Title
-- part 5 (field)
-- low flags: 81
-- high flags: 0001
-- rect: left=423 top=0 right=13 bottom=466
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: CardTitle
-- part 14 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=443 top=5 right=72 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Instant Reference
----- HyperTalk script -----
on mouseUp
instantReference "1.2.1"
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=480 top=143 right=172 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 1310 / 1310
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Student Services
----- HyperTalk script -----
on mousedown
SSpopUp
end mousedown
on mouseup
if the mouseloc is not within the rect of me then exit to hyperCard
doSS
end mouseup
-- part 16 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=482 top=176 right=205 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 162 / 162
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
Help
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=482 top=294 right=320 bottom=509
-- title width / last selected line: 0
-- icon id / first selected line: 1236 / 1236
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Last Menu
----- HyperTalk script -----
on mouseUp
go to card "Links and Nodes P/1"
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=478 top=319 right=341 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 1401 / 1401
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev
----- HyperTalk script -----
on mouseUp
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=493 top=319 right=341 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 1400 / 1400
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next
----- HyperTalk script -----
on mouseUp
end mouseUp
-- part 21 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=16 top=38 right=65 bottom=441
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 20
-- style flags: 0
-- line height: 26
-- part name: Subtitle
-- part 22 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=16 top=70 right=126 bottom=445
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 17
-- part name: Header
-- part 33 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=22 top=236 right=306 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Links
-- part 35 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=231 top=236 right=306 bottom=405
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Nodes
-- part 23 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=16 top=129 right=149 bottom=445
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 15
-- part name: Instruction
-- part 24 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=296 top=153 right=197 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 31065 / 31065
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Printer
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 26 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=155 top=153 right=197 bottom=199
-- title width / last selected line: 0
-- icon id / first selected line: 6453 / 6453
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Telephone
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 27 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=18 top=153 right=197 bottom=60
-- title width / last selected line: 0
-- icon id / first selected line: 25077 / 25077
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Computer
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 28 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=357 top=153 right=197 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 31891 / 31891
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Microwave
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 29 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=226 top=153 right=197 bottom=266
-- title width / last selected line: 0
-- icon id / first selected line: 26242 / 26242
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Wires
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 30 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=89 top=153 right=197 bottom=128
-- title width / last selected line: 0
-- icon id / first selected line: 1473 / 1473
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cables
----- HyperTalk script -----
on mouseDown
moveButton
end mouseDown
-- part 42 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=8 top=36 right=94 bottom=231
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 17
-- part name: Feedback1
-- part 46 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=8 top=280 right=338 bottom=231
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 17
-- part name: CorrectAnswer
-- part 47 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=147 top=132 right=304 bottom=356
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 17
-- part name: MasterFeedback
-- part 48 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=215 top=279 right=296 bottom=284
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Done
----- HyperTalk script -----
on mouseUp
lock screen
hide fld "MasterFeedback"
hide bg btn "Done"
unlock screen
end mouseUp
-- part 49 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=8 top=97 right=155 bottom=231
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 156
-- text size: 16
-- style flags: 0
-- line height: 17
-- part name: Feedback2
-- part 54 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=268 top=321 right=340 bottom=413
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Answer
----- HyperTalk script -----
on mouseUp
send mouseUp to bg btn "done"
repeat with i = 1 to number of lines in fld "origins"
set the loc of bg btn (i + 8) to (line i of fld "origins")
end repeat
put line 1 of fld "key" into theLocs
repeat with i = 1 to number of lines in fld "origins"
get item (i*2 - 1) to (i*2) of theLocs
set the loc of bg btn (i + 8) to it
end repeat
end mouseUp
-- part 68 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=68 top=321 right=340 bottom=213
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Check Answer
----- HyperTalk script -----
on mouseUp
lock screen
if the loc of bg btn "computer" is within the rect of bg btn "Nodes" and the loc of bg btn "cables" is within the rect of bg btn "Links" and the loc of bg btn "Telephone" is within the rect of bg btn "Nodes" and the loc of bg btn "Wires" is within the rect of bg btn "Links" and the loc of bg btn "Printer" is within the rect of bg btn "Nodes" and the loc of bg btn "Microwave" is within the rect of bg btn "Links"
then put fld "feedback1" into fld "MasterFeedback"
else put fld "feedback2" into fld "MasterFeedback"